import store from '../../store/index'
import socket_m from '../../util/connect'
// 获取所有群信息
async function getAllGroups_fn() {
  socket_m.sendMsg("getGroups", {}, (o) => {
    console.log(o);
    store.commit("updateGroups_fn", o.list);
  }, false);
}

export {
  getAllGroups_fn
}